package com.globallogic.week3.util;

import java.util.HashMap;
import java.util.Map;

public class UserHandler {
	private static Map<String, String> users = new HashMap<String, String>();
	
	public String add(String login, String pass){
		return users.put(login, pass);
	}
	
	public String getPass(String login){
		return users.get(login);
	}
	
	public boolean containsLogin(String login){
		return users.containsKey(login);
	}
	
	public String remove(String login){
		return users.remove(login);
	}

}
